﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _440_Homework1
{
    public partial class SettingsForm : Form
    {
        private Game game;

        public SettingsForm(Game game)
        {
            this.game = game;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.game.size = int.Parse(sizebox.Text[0].ToString(CultureInfo.InvariantCulture));
            this.game.height = int.Parse(heightbox.Text);
            this.game.width = int.Parse(widthbox.Text);
            this.Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
           
        }
    }
}
